package com.OA.entity;


import java.io.Serializable;

/**
 * 菜单的实体类
 * @author Administrator
 *
 */

public class Menu_clz implements Serializable{
	
	private static final long serialVersionUID = -4002842469459486780L;

	//菜单id
	private int menuid;
	
	//菜单名字
	private String menuname;
	
	//菜单链接
	private String menuUrl;
	
	//菜单图标
	private String menuIcon;
	
	//菜单等级
	private int menuLevel;
	
	//菜单父类id
	private int menuparentld;
	
	//是否展示
	private int menuisShow;
	
	//根节点的序号
	private static int index = 100;

	
	
	public int getMenuid() {
		return menuid;
	}

	public void setMenuid(int menuid) {
		this.menuid = menuid;
	}

	public String getMenuname() {
		return menuname;
	}

	public void setMenuname(String menuname) {
		this.menuname = menuname;
	}

	public String getMenuUrl() {
		return menuUrl;
	}

	public void setMenuUrl(String menuUrl) {
		this.menuUrl = menuUrl;
	}

	public String getMenuIcon() {
		return menuIcon;
	}

	public void setMenuIcon(String menuIcon) {
		this.menuIcon = menuIcon;
	}

	public int getMenuLevel() {
		return menuLevel;
	}

	public void setMenuLevel(int menuLevel) {
		if (menuLevel == 1) {
			index++;
		}
		this.menuLevel = menuLevel;
	}

	public int getMenuparentld() {
		return menuparentld;
	}

	public void setMenuparentld(int menuparentld) {
		this.menuparentld = menuparentld;
	}

	public int getMenuisShow() {
		return menuisShow;
	}

	public void setMenuisShow(int menuisShow) {
		this.menuisShow = menuisShow;
	}

	public static int getIndex() {
		return index;
	}

	public static void setIndex(int index) {
		Menu_clz.index = index;
	}

	

}
